package com.zhiqianbao.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;


/**
* @ClassName: Loan
* @Description: 借款表
* @author 李兴达
* @date 2015年12月25日 上午11:37:48
*
*/ 
@SuppressWarnings("serial")
public class Loan extends IdEntity {
	/**
	* @Fields userId :用户id 
	*/ 
	private Long userId;
	/**
	* @Fields contractId : 合同编号
	*/ 
	private Long contractId;
	/**
	* @Fields amount : 借款总额
	*/ 
	private BigDecimal amount;
	/**
	* @Fields term : 借款期限
	*/ 
	private Integer term;
	/**
	* @Fields manageRate : 综合管理费率
	*/ 
	private Double manageRate;
	/**
	* @Fields monthFee : 月管理费
	*/ 
	private BigDecimal monthFee;
	/**
	* @Fields realMoney : 实际到帐金额
	*/ 
	private BigDecimal realMoney;
	/**
	* @Fields repayMethod : 还款方式
	*/ 
	private String repayMethod;
	/**
	* @Fields urgent : 是否加急
	*/ 
	private String urgent;
	/**
	* @Fields repayAmount : 已还总额
	*/ 
	private BigDecimal repayAmount;
	/**
	* @Fields remainAmount : 未还总额
	*/ 
	private BigDecimal remainAmount;
	/**
	* @Fields state : 当前状态
	*/ 
	private String state;
	/**
	 * 关联本次信用数据 
	 */
	private Long loanCreditRatingId;
	/**
	 * 应还 或 已还数据
	 */
	List<Repay> repays = new ArrayList<>();
	
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public Long getContractId() {
		return contractId;
	}
	public void setContractId(Long contractId) {
		this.contractId = contractId;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	public Integer getTerm() {
		return term;
	}
	public void setTerm(Integer term) {
		this.term = term;
	}
	public Double getManageRate() {
		return manageRate;
	}
	public void setManageRate(Double manageRate) {
		this.manageRate = manageRate;
	}
	public BigDecimal getMonthFee() {
		return monthFee;
	}
	public void setMonthFee(BigDecimal monthFee) {
		this.monthFee = monthFee;
	}
	public BigDecimal getRealMoney() {
		return realMoney;
	}
	public void setRealMoney(BigDecimal realMoney) {
		this.realMoney = realMoney;
	}
	public String getRepayMethod() {
		return repayMethod;
	}
	public void setRepayMethod(String repayMethod) {
		this.repayMethod = repayMethod;
	}
	public String getUrgent() {
		return urgent;
	}
	public void setUrgent(String urgent) {
		this.urgent = urgent;
	}
	public BigDecimal getRepayAmount() {
		return repayAmount;
	}
	public void setRepayAmount(BigDecimal repayAmount) {
		this.repayAmount = repayAmount;
	}
	public BigDecimal getRemainAmount() {
		return remainAmount;
	}
	public void setRemainAmount(BigDecimal remainAmount) {
		this.remainAmount = remainAmount;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public Long getLoanCreditRatingId() {
		return loanCreditRatingId;
	}
	public void setLoanCreditRatingId(Long loanCreditRatingId) {
		this.loanCreditRatingId = loanCreditRatingId;
	}
	public List<Repay> getRepays() {
		return repays;
	}
	public void setRepays(List<Repay> repays) {
		this.repays = repays;
	}
}
